package com.boarsoft.boar.office.work;

import com.boarsoft.boar.office.entity.OfficeWorkInfo;
import com.boarsoft.common.dao.PagedResult;

public interface OfficeWorkBiz {

	/**
	 * 
	 * @param groupId
	 * @param userId
	 * @param key
	 * @param orderBy
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	PagedResult<OfficeWorkInfo> list(String groupId, String userId, String key, String orderBy, int pageNo, int pageSize);

	OfficeWorkInfo get(String id);

	void save(OfficeWorkInfo o, String preWorkIds);
	
	void save(OfficeWorkInfo o);

	void update(OfficeWorkInfo o);

	PagedResult<OfficeWorkInfo> list(String groupId, String ownerId, String key, Short status, String orderBy, int pageNo,
			int pageSize);

}
